from typing import List


class Solution:
    def prefixCount(self, words: List[str], pref: str) -> int:
        l = len(pref)
        sum = 0
        for i in words:
            print(i[:l])
            if i[:l] == pref:
                sum +=1
        return sum



if __name__ == '__main__':
    words = ["pay","attention","practice","attend"]
    pref = "at"


    solution = Solution()
    val = solution.prefixCount(words,pref)
    print(val)
